//
//  OPAuthUser.h
//  OPFramework
//
//  Created by malcom on 7/16/08.
//  Copyright 2008 malcom-mac software. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "OPUser.h"
#import "OPPersonalInbox.h"

@class OPPersonalInbox;
@interface OPAuthUser : OPUser {
	NSString			*user_username;			// used username
	NSString			*user_password;			// used password
	NSDate				*user_loginDate;		// login date
	OPPersonalInbox		*user_personalBox;		// user personal inbox
}

@property (readonly) NSString *user_username;
@property (readonly) NSString *user_password;
@property (readonly) NSDate *user_loginDate;
@property (readonly) OPPersonalInbox *user_personalBox;

- (id) initWithUsername:(NSString *) _user andPassword:(NSString *) _password;

- (BOOL) isLogged;
- (int) unreadPrivateMessages;
- (void) reloadAuthPersonalDatabase;
- (NSArray *) getOnlineFriends;
- (void) setLoginDateTo:(NSDate *) _date;

@end
